
<div class="top-content" style="position:absolute;width:100%;height:100%;background-attachment:fixed;
        background-image: url(http://10.222.29.181:8088/O2OFileServer/read/background/home.jpg);background-size:100% 100%;margin-top:-40px;">

    <div class="inner-bg">
        <div class="container" >
            <div class="row" style="margin-top:-30px;">
                <div class="col-sm-8 col-sm-offset-2 text" >
                    <h1 style="text-align: center;color:white;"> Merchant Message</h1>
                    <div class="description">

                    </div>
                <div style="text-align:center;">
                    <img  class="img-circle"  style="width:300px;height:300px;" src="{{imgHead}}" class="img-circle imgHead">
                </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6 col-sm-offset-3 form-box">

                    <div class="form-bottom" >
                        <table style="font-size:25px;">
                            <tr>
                                <td style="text-align: left;"><input  class="txt" disabled="true" ng-model="_id" hidden="true" /></td>
                            </tr>
                            <tr>
                                <td style="text-align: left;">Account:</td>
                                <td><input  class="txt" disabled="true" ng-model="account" style="background-color: #EEEEEE;text-align: left;"/></td>
                            </tr>
                            <tr id="shopNameTr">
                                <td style="text-align: left;">Shop Name:</td>
                                <td><input  class="txt" disabled="true" ng-model="name"  style="background-color: #EEEEEE;text-align: left;"/></td>
                            </tr>
                            <tr id="addressTr">
                                <td style="text-align: left;">Address:</td>
                                <td><input  class="txt" disabled="true" ng-model="address" style="background-color: #EEEEEE;text-align: left;" /></td>
                            </tr>
                            <tr id="stateTr" style="">

                                    <td style="text-align: left;" >State:</td>
                                    <td ng-if="status==0" style="color:#FFFF00;text-align: left;">Pending</td>
                                    <td ng-if="status==1" style="color:#7CFC00;text-align: left;">Pass</td>
                                    <td ng-if="status==2" style="color:#FF4500;text-align: left;">Reject <strong></strong>

                                    </td>
                                    <td></td>

                            </tr>
                            <tr>
                                <td></td>
                                <td style="color:#FF4500" ng-if="status==2"> <input style="background-color: #EEEEEE;" class="txt" disabled="true" ng-model="rejectContent" /></td>
                            </tr>
                        </table>
                        <div class="form-group row" style="padding-top:40px;" ng-if="status!=1">
                            <div class="col-md-6">
                                <button type="submit" class="btn btn-success btn-lg" ng-click="getStatus()" style="width:200px;">Get Status</button>

                            </div>
                            <div class="col-md-6">
                                <button type="button" class="btn btn-primary btn-lg"  data-toggle="modal" data-target="#applyModel"  style="width:200px;">Apply Store</button>
                            </div>
                        </div>

                    </div>

                </div>
            </div>
        </div>
    </div>

</div>

<div class="modal fade" id="applyModel" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">Update Merchant</h4>
            </div>
            <div class="modal-body">
                <span style="color:red" class="error-span" id="errorSpan1" ng-show="msgNull">Message is null</span>
                <table class="table" id="processMer">
                    <tr>
                        <td>Account：</td>
                        <td>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="account" disabled="disabled" ng-model="account"/>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>Name：</td>
                        <td><div class="col-sm-10"><input type="text" class="form-control" name="account" ng-model="name"/></div></td>
                    </tr>
                    <tr>
                        <td>Address：</td>
                        <td><div class="col-sm-10">
                            <input type="text" class="form-control" name="address" ng-model="address"/>
                        </div></td>
                    </tr>
                    <tr>
                        <td>ImgCard：</td>
                        <td><div class="col-sm-10"><input type="file"  file-model="imgCard" name="imgCard" class="form-control" /></div></td>
                    </tr>
                    <tr>
                        <td>ImgHead：</td>
                        <td><div class="col-sm-10"><input type="file" class="form-control"  file-model="imgHeadApply" name="imgHeadApply"/></div></td>
                    </tr>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary" id="updateBtn" ng-click="apply()" >Submit</button>
            </div>
        </div>
    </div>
</div>

